﻿namespace CRM.Business.Services
{
    using System.Collections.Generic;
    using CRM.DataAccess.DAOs;
    using CRM.DataAccess.Entities;

    public static class LeadSourceService
    {
        /// Gets or sets the role DAO.
        private static LeadSourceDAO LeadSourceDAO = new LeadSourceDAO();

       //Get All Lead Source
        public static List<LEAD_SOURCE> GetAllLeadSource()
        {
            return LeadSourceDAO.GetAllLeadSource();
        }
        //Get lead source by Name
        public static LEAD_SOURCE GetLeadSoureByName(string name)
        {
            return LeadSourceDAO.GetLeadSourceByName(name);
        }
        //add new Lead Source
        public static int AddnewLeadSource(LEAD_SOURCE ls)
        {
            return LeadSourceDAO.AddNewLeadSource(ls);
        }
    }
}
